//
//  DefaultView.m
//  PlaceHolderView
//
//  Created by yh on 17/5/16.
//  Copyright © 2017年 yh. All rights reserved.
//

#import "DefaultView.h"

@implementation DefaultView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 130, 130)];
        imageView.image = [UIImage imageNamed:@"list_empty"];
        imageView.contentMode = UIViewContentModeScaleAspectFit;
        imageView.center = self.center;
        [self addSubview:imageView];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)];
        label.textColor = kRgb(186, 186, 186);
        label.textAlignment = NSTextAlignmentCenter;
        label.text = @"暂无数据";
        label.center = CGPointMake(self.center.x, self.center.y+90);
        [self addSubview:label];
    }
    return self;
}

@end
